<?php session_start (); if (isset($_SESSION['login']) && isset($_SESSION['mdp']) && $_SESSION['Autorisation'] == 3) {?>
<html>
<head>
<link rel="stylesheet" href="styleadmin.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>sans titre 1</title>
</head>
<?php
                                include '../include/Data.php';
                                $login = $_GET['login'];
                                $mdp = $_GET['mdp'];
                                $prenom = $_GET['prenom'];
                                $nom = $_GET['nom'];
                                $mail = $_GET['mail'];
                                $autorisation = $_GET['autorisation'];

                                      $sql = "INSERT INTO utilisateur (Login,Password,Prenom,Nom,Email,Autorisation) VALUE('$login','$mdp','$prenom','$nom','$mail','$autorisation')";
                                      $req = mysql_query($sql,$connexion);
                                      header('Location: gerer-aut.php');

?>
</html>
<?php } else { header("Refresh: 0; URL=../index.php"); }?>